The phrase "foaming subsides" means that the bubbles or foam in a liquid start to decrease or disappear.